#coding=utf-8
#!/usr/bin/python





#     cd /d D:\python26 
#     python.exe D:\py\demo\win32com_demo.py

#       python.exe  .\dev_test\win32com_demo.py
   

"""


依赖 pywin32-214.win32-py2.6.exe

win32com demo 

"""
import win32com.client  

import win32api
import win32gui
import win32con

#from win32com import client as wc


def TestExplorer(iexplore):
    if not iexplore.Visible: iexplore.Visible = -1
    print type(iexplore.Navigate)
    iexplore.Navigate('http://mail.python.org/pipermail/python-win32/2008-May/007616.html')
    win32api.Sleep(1000)
    TestObjectFromWindow()
    win32api.Sleep(3000)
    try:
        iexplore.Quit()
    except (AttributeError, pythoncom.com_error):
        # User got sick of waiting :)
        pass


iexplore = win32com.client.Dispatch("InternetExplorer.Application")
TestExplorer(iexplore)





    
